package wfmanage.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.util.MyLog;

import edu.wfmanage.models.Claim;
import edu.wfmanage.models.User;

public class verificationQueue extends ActionSupport{
	/**
	Author: Satya Deepthi Bhagi
	 **/
	
	private static final long serialVersionUID = 1L;
	private List<Claim> verifyitems;
	public String execute() throws Exception {
		MyLog.log("Inside verificationQueue.execute() method");
		Map<String, Object> session = ActionContext.getContext().getSession();
		User user = (User) session.get("user");
		if (user == null) {
			user = new User();
		}
		verifyitems=new ArrayList<Claim>();
		verifyitems = Claim.findverifyitems("where VERIFY_DPT_STATUS='verfication pending'  and status='pending' ");
		return "success";
	}
	public List<Claim> getVerifyitems() {
		return verifyitems;
	}
	public void setVerifyitems(List<Claim> verifyitems) {
		this.verifyitems = verifyitems;
	}
	
}
